package responsibilityChainPattern;

public class Demo {
    public static void main(String[] args) {
        Ileave LEAVE= new Leave("张三 ",3," 身体不适");
        Handler groupLeader=new GroupLeader();
        Handler Manger=new Manger();
        Handler BigManger=new BigManger();
        groupLeader.setNextHandler(Manger);
        Manger.setNextHandler(BigManger);
        groupLeader.submit(LEAVE);
    }
}
